s = input()
s = input()

l = [float(token) for token in s.split()]

avg = len( l ) / sum( [(1/val) for val in l] )

print("{:.2f}".format(avg))
